package cn.tedu.spring2205.week02;

import cn.tedu.spring2205.week02.aop.MyAopBean;
import cn.tedu.spring2205.week02.config.Week02Config;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;

public class AopTest {
    public static void main(String[] args) {
        ApplicationContext context =
                SpringApplication.run(Week02Config.class);
        MyAopBean bean = context.getBean(MyAopBean.class);
        bean.addUser();
        bean.deleteUser();
        bean.findUserByName();
    }
}
